package com.stone.schedule.facade.base;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * Created by stone on 2017/8/31.
 */
@Data
@ToString
public class BaseResponseDTO<T> implements Serializable {


	private static final long serialVersionUID = -3043735425145384036L;

	/**
	 * 错误码
	 */
	private Integer code;

	/**
	 * 错误信息
	 */
	private String message;

	/**
	 * 返回值
	 */
	private T data;

	public BaseResponseDTO() {
		super();
	}

	public BaseResponseDTO(T data) {
		this.data = data;
	}

}
